﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class hydevmanager_admin_manager_photoalbum : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

            if (Session["timeout"] == null)
            {
                Response.Redirect("login.aspx");
            }
            {
            }
        }
    }

    protected void btninsert_click(object sen, EventArgs e)
    {
        string album_sapo = fcknew.Value;
        int idalbum = Convert.ToInt32(Request.QueryString.Get("idalbum"));
        string folder_album = Request.QueryString.Get("album_folder").ToString();

        DataAccess.ExeNonSQL("UPDATE dev_album_title SET sapo=N'" + album_sapo + "' WHERE idalbum=" + idalbum + "");
        //Response.Redirect(Request.ServerVariables["HTTP_REFERER"]);
        Response.Redirect("admin_edit_photo.aspx?idalbum=" + idalbum + "&folder_album=" + folder_album + "");
    }
}
